package com.xiaoyy.sso.core.dao.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 树辅助表
 * </p>
 *
 * @author chenzh
 * @since 2020-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYS_TREE")
@ApiModel(value="SysTree对象", description="树辅助表")
public class SysTree extends Model<SysTree> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "SYS_ID", type = IdType.INPUT)
    private Long sysId;

    @ApiModelProperty(value = "树id")
    @TableField("TREE_ID")
    private String treeId;

    @ApiModelProperty(value = "上级id")
    @TableField("PARENT_ID")
    private String parentId;

    @ApiModelProperty(value = "树类型 router 路由树 org 组织树 function 功能树")
    @TableField("TREE_TYPE")
    private String treeType;

    @ApiModelProperty(value = "备注")
    @TableField("NOTE")
    private String note;


    @Override
    protected Serializable pkVal() {
        return this.sysId;
    }

}
